package com.platform.modules.sys.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.common.validator.group.AddGroup;
import com.platform.common.validator.group.UpdateGroup;

import lombok.Data;

/**
 * 数据字典实体 表名 sys_dict
 *
 * @author 肖亮
 * @date 2019-01-15 11:42:20
 */
@Data
@TableName("SYS_DICT")
public class SysDictEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private String id;
	/**
	 * 所属分组ID
	 */
	@ApiModelProperty(value="所属分组ID",example="")
	@NotBlank(message = "所属分组不能为空", groups = { AddGroup.class, UpdateGroup.class })
	private String groupId;
	/**
	 * 字典名称
	 */
	@ApiModelProperty(value="字典名称",example="")
	@NotBlank(message = "字典名称不能为空", groups = { AddGroup.class, UpdateGroup.class })
	private String name;
	/**
	 * 字典值
	 */
	@ApiModelProperty(value="字典值",example="")
	@NotBlank(message = "字典值不能为空", groups = { AddGroup.class, UpdateGroup.class })
	private String value;
	/**
	 * 父级字典Id
	 */
	@ApiModelProperty(value="父级字典Id",example="")
	private String parentId;
	
	
	/**
	 * 排序号
	 */
	@ApiModelProperty(value="排序号",example="")
	private Integer sort;
	/**
	 * 状态码
	 */
	@ApiModelProperty(value="状态码",example="")
	private String status;
	/**
	 * 备注
	 */
	@ApiModelProperty(value="备注",example="")
	private String remark;

	@TableField(exist = false)
	private String code;
	/**
	 * 所属分组名称
	 */
	@ApiModelProperty(value="所属分组名称",example="")
	@TableField(exist = false)
	private String groupName;
	/**
	 * 父级字典名称
	 */

	@TableField(exist = false)
	private String parentName;
	
	
	
}
